package top.saplf.library.ext

import android.os.Handler
import android.os.Looper

/**
 * @author saplf
 */
val mainHandler by lazy { Handler(Looper.getMainLooper()) }

inline fun mainThread(crossinline run: () -> Unit) {
    mainHandler.post { run() }
}
